package com.comleader.uap.common.page;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 功能描述: 分页条件
 *
 * @Author: 连新景
 * @Date: 2024/11/23 17:47
 */
@ApiModel(value = "分页查询对象")
@Data
public class PageQuery<T> {

    @ApiModelProperty(value = "页面编号，从1开始",required = true)
    @NotNull(message = "pageNumber不能为空")
    private Integer pageNumber;

    @ApiModelProperty(value = "每页显示记录数",required = true)
    @NotNull(message = "pageSize不能为空")
    private Integer pageSize;

    private T queryParams;

}
